package me.mouse.gokistats.config;

import java.util.List;
import org.bukkit.configuration.file.FileConfiguration;

import me.mouse.gokistats.GokiStats;

public class Language {
	public static String perfix;
	public static List<String> help;
	public static String changeLevel;
	public static String info;
	public static String infoPoint;
	public static String infoTalent;
	public static String infoLine;
	public static String givePoint;
	public static String setPoint;
	public static String reload;
	public static String notPer;
	public static String notNumber;
	public static String numberError;
	public static String notCommand;
	public static String levelMax;
	public static String levelup;
	public static String notLevelup;
	public static String exp;
	public static String level;
	public static String money;
	public static String point;
	public static String unknown;
	public static String success;
	public static String failure;
	public static String unknownTalent;
	public static String tellrawTalentInfo;
	public static String tellrawLevelup;

	public static void load() {
		FileConfiguration language = GokiStats.load("language.yml");
		if (language == null) {
			return;
		}
		perfix = language.getString("perfix").replaceAll("&", "§");
		help = language.getStringList("help");
		changeLevel = language.getString("changeLevel").replaceAll("&", "§");
		info = language.getString("info").replaceAll("&", "§");
		infoTalent = language.getString("infoTalent").replaceAll("&", "§");
		infoPoint = language.getString("infoPoint").replaceAll("&", "§");
		infoLine = language.getString("infoLine").replaceAll("&", "§");
		givePoint = language.getString("givePoint").replaceAll("&", "§");
		setPoint = language.getString("setPoint").replaceAll("&", "§");
		reload = language.getString("reload").replaceAll("&", "§");
		notPer = language.getString("notPer").replaceAll("&", "§");
		notNumber = language.getString("notNumber").replaceAll("&", "§");
		numberError = language.getString("numberError").replaceAll("&", "§");
		notCommand = language.getString("notCommand").replaceAll("&", "§");
		levelMax = language.getString("levelMax").replaceAll("&", "§");
		levelup = language.getString("levelup").replaceAll("&", "§");
		notLevelup = language.getString("notLevelup").replaceAll("&", "§");
		exp = language.getString("exp").replaceAll("&", "§");
		level = language.getString("level").replaceAll("&", "§");
		money = language.getString("money").replaceAll("&", "§");
		point = language.getString("point").replaceAll("&", "§");
		unknown = language.getString("unknown").replaceAll("&", "§");
		success = language.getString("success").replaceAll("&", "§");
		failure = language.getString("failure").replaceAll("&", "§");
		unknownTalent = language.getString("unknownTalent").replaceAll("&", "§");
		tellrawTalentInfo = language.getString("tellrawTalentInfo").replaceAll("&", "§");
		tellrawLevelup = language.getString("tellrawLevelup").replaceAll("&", "§");
	}
}
